package edu.zli.lazy;

import edu.zli.hungry.HungryThread;

/**
 * @author ZerlindaLi create at 2021/3/18 10:39
 * @version 1.0.0
 * @description HungryDriver
 */
public class LazyDriver {
    public static void main(String[] args) {
        LazyThread thread1 = new LazyThread();
        LazyThread thread2 = new LazyThread();
        thread1.start();
        thread2.start();

        LazySingle single = LazySingle.getInstance();
        System.out.println(single);
        LazySingle single2 = LazySingle.getInstance();
        System.out.println(single2);
    }
}
